package com.csx.base.design.behavior.state;

/**
 * @author cuisongxu
 * @date 2022/10/8 12:10
 */
public class Client {

    public static void main(String[] args) {

        TrafficLight trafficLight = new TrafficLight();
        trafficLight.switchToYellow();
        trafficLight.switchToGreen();
        trafficLight.switchToYellow();
        trafficLight.switchToRed();
        trafficLight.switchToGreen();
    }
}
